package com.hl.sfzy.service.wxwappService;

import com.github.pagehelper.PageHelper;
import com.hl.sfzy.entity.wxwapp.CourseOnline;
import com.hl.sfzy.mapper.wxwappMapper.CourseOnlineMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @className: CourseOnlineService
 * @author: WXW
 * @date: 2024/9/5 19:54
 * @Version: 1.0
 * @description:
 */
@Service
public class CourseOnlineService {
    @Autowired
    private CourseOnlineMapper courseOnlineMapper;

    public List<CourseOnline> selectOnlineCourse(Integer pageNum, Integer pageSize){
        PageHelper.startPage(pageNum, pageSize);
        return courseOnlineMapper.selectAllOnlineCourse();
    }
}
